<?php
namespace App\Repository\Java;

use App\Repository\Contracts\RegistrationJavaInterface;

/**
 * @Author:: HuangYin
 * @DateTime: 2017-02-06 13:43
 *
 * @Description:
 */
class RegistrationRepository extends Repository implements RegistrationJavaInterface
{
    protected function setPrefix()
    {
        $this->prefix = '';
    }

    public function syncCreated($storeId, array $data)
    {
        $data['storeId'] = $storeId;
        $result = $this->post(__FUNCTION__, $data);

        return $result['resultType'] === 'success';
    }
}